<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSeckillgoodsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('seckillgoods', function (Blueprint $table) {
            $table->increments('id');
            $table->string('title')->comment('秒杀产品的名称');
            $table->double('price')->comment('秒杀活动产品的价格');
            $table->string('path')->comment('秒杀活动产品的配图地址');
            $table->integer('number_left')->comment('剩余产品的数据');
            $table->integer('creator')->comment('秒杀活动的创建人员');
            $table->integer('status')->commnet('秒杀活动的状态');
            $table->string('lasttime')->comment('秒杀活动的最后截止时间');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('seckillgoods');
    }
}
